let a = [1, 2, 3];
console.log(a.join()); // 1,2,3
console.log(a.join(" ")); // 1 2 3
console.log(a.join("")); // 123
console.log(new Array(10).join("-")); // ---------
console.log(a.toString()); // 1,2,3
